<script setup lang="ts">
import { onMounted } from "vue";
import { useRouter } from "vue-router";
import { FORMATED_TYPE_FILE } from "./sde";
import { FileUtils } from "./utils";

const router = useRouter();
onMounted(async () => {
  //不存在跳转引导页
  if (!FileUtils.exist(FORMATED_TYPE_FILE)) {
    await router.push("/bootstrap");
  } else {
    await router.push("/contracts");
  }
});
</script>

<template>
  <router-view />
</template>
